<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>css特性-优先级(权重叠加)</title>
  <style>
    div p {
      color: red;
    }
    /* 存在继承关系,权重最低 */
    .father {
      color: blue;
    }
  </style>
</head>
<body>
  <div class="father">
    <p class="son">
      文字
    </p>
  </div>
</body>
</html>